﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CsharpTrainer.Model.Entities;
using CsharpTrainer.Domain.Clients;
using Zeus.Thunder.Core;

namespace SharpTrainer.Postgresql
{
    class GetContactTest : ITestCase
    {
        public void Run()
        {
            Console.Write("Please Input the Contact ID:");
            int contactId = Convert.ToInt32(Console.ReadLine());

            ContactClient contact_client = new ContactClient();
            ContactInfo contact = contact_client.GetContact(contactId);

            if (contact != null)
                Console.WriteLine(contact.ToString());
            else
                Console.WriteLine("No this contact!");

            Console.Read();
        }
    }
}
